package com.sgu6.sgu6_machine.dto;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

public class MerchantDto implements Serializable {

    /**
     * id : string
     * name : string
     * contact : string
     * openId : string
     * phone : string
     * email : string
     * address : string
     * adminAccountId : string
     * logoUrl : string
     * adImagesUrl : string
     * summary : string
     * royaltyRatio : 0
     * introducer : string
     * introducerPath : string
     * royaltyMoney : 0
     * directMoney : 0
     * indirectMoney : 0
     * withdrawalMoney : 0
     * type : 0
     * appId : string
     * goods : [{"id":"string","categoryId":"string","name":"string","title":"string","model":"string","price":0,"marketPrice":0,"totalSale":0,"shortContent":"string","metaKeyword":"string","metaDescription":"string","netWeight":0,"grossWeight":0,"saleTime":"2019-10-29T11:17:11.332Z","content":"string","merchantId":"string","sort":0,"photo":[{"id":"string","imgUrl":"string","sort":0,"show":false}],"machineAddress":"string","machineNo":"string","machineName":"string","varietyId":"string","barnId":"string","goodsType":0,"specification":"string","del":false,"hot":false,"new":false,"enable":false}]
     */

    private String id;
    private String name;
    private String contact;
    private String openId;
    private String phone;
    private String email;
    private String address;
    private String adminAccountId;
    private String logoUrl;
    private String adImagesUrl;
    private String summary;
    private int royaltyRatio;
    private String introducer;
    private String introducerPath;
    private int royaltyMoney;
    private int directMoney;
    private int indirectMoney;
    private int withdrawalMoney;
    private int type;
    private String appId;
    private List<GoodsBean> goods;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getAdminAccountId() {
        return adminAccountId;
    }

    public void setAdminAccountId(String adminAccountId) {
        this.adminAccountId = adminAccountId;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public String getAdImagesUrl() {
        return adImagesUrl;
    }

    public void setAdImagesUrl(String adImagesUrl) {
        this.adImagesUrl = adImagesUrl;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public int getRoyaltyRatio() {
        return royaltyRatio;
    }

    public void setRoyaltyRatio(int royaltyRatio) {
        this.royaltyRatio = royaltyRatio;
    }

    public String getIntroducer() {
        return introducer;
    }

    public void setIntroducer(String introducer) {
        this.introducer = introducer;
    }

    public String getIntroducerPath() {
        return introducerPath;
    }

    public void setIntroducerPath(String introducerPath) {
        this.introducerPath = introducerPath;
    }

    public int getRoyaltyMoney() {
        return royaltyMoney;
    }

    public void setRoyaltyMoney(int royaltyMoney) {
        this.royaltyMoney = royaltyMoney;
    }

    public int getDirectMoney() {
        return directMoney;
    }

    public void setDirectMoney(int directMoney) {
        this.directMoney = directMoney;
    }

    public int getIndirectMoney() {
        return indirectMoney;
    }

    public void setIndirectMoney(int indirectMoney) {
        this.indirectMoney = indirectMoney;
    }

    public int getWithdrawalMoney() {
        return withdrawalMoney;
    }

    public void setWithdrawalMoney(int withdrawalMoney) {
        this.withdrawalMoney = withdrawalMoney;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public List<GoodsBean> getGoods() {
        return goods;
    }

    public void setGoods(List<GoodsBean> goods) {
        this.goods = goods;
    }

    public static class GoodsBean {
        /**
         * id : string
         * categoryId : string
         * name : string
         * title : string
         * model : string
         * price : 0
         * marketPrice : 0
         * totalSale : 0
         * shortContent : string
         * metaKeyword : string
         * metaDescription : string
         * netWeight : 0
         * grossWeight : 0
         * saleTime : 2019-10-29T11:17:11.332Z
         * content : string
         * merchantId : string
         * sort : 0
         * photo : [{"id":"string","imgUrl":"string","sort":0,"show":false}]
         * machineAddress : string
         * machineNo : string
         * machineName : string
         * varietyId : string
         * barnId : string
         * goodsType : 0
         * specification : string
         * del : false
         * hot : false
         * new : false
         * enable : false
         */

        private String id;
        private String categoryId;
        private String name;
        private String title;
        private String model;
        private int price;
        private int marketPrice;
        private int totalSale;
        private String shortContent;
        private String metaKeyword;
        private String metaDescription;
        private int netWeight;
        private int grossWeight;
        private String saleTime;
        private String content;
        private String merchantId;
        private int sort;
        private String machineAddress;
        private String machineNo;
        private String machineName;
        private String varietyId;
        private String barnId;
        private int goodsType;
        private String specification;
        private boolean del;
        private boolean hot;
        @SerializedName("new")
        private boolean newX;
        private boolean enable;
        private List<PhotoBean> photo;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCategoryId() {
            return categoryId;
        }

        public void setCategoryId(String categoryId) {
            this.categoryId = categoryId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getModel() {
            return model;
        }

        public void setModel(String model) {
            this.model = model;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getMarketPrice() {
            return marketPrice;
        }

        public void setMarketPrice(int marketPrice) {
            this.marketPrice = marketPrice;
        }

        public int getTotalSale() {
            return totalSale;
        }

        public void setTotalSale(int totalSale) {
            this.totalSale = totalSale;
        }

        public String getShortContent() {
            return shortContent;
        }

        public void setShortContent(String shortContent) {
            this.shortContent = shortContent;
        }

        public String getMetaKeyword() {
            return metaKeyword;
        }

        public void setMetaKeyword(String metaKeyword) {
            this.metaKeyword = metaKeyword;
        }

        public String getMetaDescription() {
            return metaDescription;
        }

        public void setMetaDescription(String metaDescription) {
            this.metaDescription = metaDescription;
        }

        public int getNetWeight() {
            return netWeight;
        }

        public void setNetWeight(int netWeight) {
            this.netWeight = netWeight;
        }

        public int getGrossWeight() {
            return grossWeight;
        }

        public void setGrossWeight(int grossWeight) {
            this.grossWeight = grossWeight;
        }

        public String getSaleTime() {
            return saleTime;
        }

        public void setSaleTime(String saleTime) {
            this.saleTime = saleTime;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getMerchantId() {
            return merchantId;
        }

        public void setMerchantId(String merchantId) {
            this.merchantId = merchantId;
        }

        public int getSort() {
            return sort;
        }

        public void setSort(int sort) {
            this.sort = sort;
        }

        public String getMachineAddress() {
            return machineAddress;
        }

        public void setMachineAddress(String machineAddress) {
            this.machineAddress = machineAddress;
        }

        public String getMachineNo() {
            return machineNo;
        }

        public void setMachineNo(String machineNo) {
            this.machineNo = machineNo;
        }

        public String getMachineName() {
            return machineName;
        }

        public void setMachineName(String machineName) {
            this.machineName = machineName;
        }

        public String getVarietyId() {
            return varietyId;
        }

        public void setVarietyId(String varietyId) {
            this.varietyId = varietyId;
        }

        public String getBarnId() {
            return barnId;
        }

        public void setBarnId(String barnId) {
            this.barnId = barnId;
        }

        public int getGoodsType() {
            return goodsType;
        }

        public void setGoodsType(int goodsType) {
            this.goodsType = goodsType;
        }

        public String getSpecification() {
            return specification;
        }

        public void setSpecification(String specification) {
            this.specification = specification;
        }

        public boolean isDel() {
            return del;
        }

        public void setDel(boolean del) {
            this.del = del;
        }

        public boolean isHot() {
            return hot;
        }

        public void setHot(boolean hot) {
            this.hot = hot;
        }

        public boolean isNewX() {
            return newX;
        }

        public void setNewX(boolean newX) {
            this.newX = newX;
        }

        public boolean isEnable() {
            return enable;
        }

        public void setEnable(boolean enable) {
            this.enable = enable;
        }

        public List<PhotoBean> getPhoto() {
            return photo;
        }

        public void setPhoto(List<PhotoBean> photo) {
            this.photo = photo;
        }

        public static class PhotoBean {
            /**
             * id : string
             * imgUrl : string
             * sort : 0
             * show : false
             */

            private String id;
            private String imgUrl;
            private int sort;
            private boolean show;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getImgUrl() {
                return imgUrl;
            }

            public void setImgUrl(String imgUrl) {
                this.imgUrl = imgUrl;
            }

            public int getSort() {
                return sort;
            }

            public void setSort(int sort) {
                this.sort = sort;
            }

            public boolean isShow() {
                return show;
            }

            public void setShow(boolean show) {
                this.show = show;
            }
        }
    }
}
